import java.util.Scanner;

public class EmployeeDepartmentAssignment {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.print("请输入新员工的姓名: ");
        String employeeName = scanner.nextLine();

        System.out.print("请输入新员工应聘的语言: ");
        String programmingLanguage = scanner.nextLine();

        String department = assignDepartment(programmingLanguage);

        if (department != null) {
            System.out.println(employeeName + "被分配到" + department + "部门。");
        } else {
            System.out.println("对不起，公司没有与输入的语言匹配的部门。");
        }
    }

    public static String assignDepartment(String programmingLanguage) {
        switch (programmingLanguage.toLowerCase()) {
            case "java":
                return "java程序开发部门";
            case "c#":
                return "C#程序开发部门";
            case "asp.net":
                return "asp.net程序测试部门";
            case "前端":
                return "前端程序开发部门";
            default:
                return null;
        }
    }
}
